/**
 * @Author: 陈瑞鹏
 * @Date:   2022-10-21 10:07:34
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-10-26 17:25:10
 */
import mongoose from "mongoose";

const Schema = mongoose.Schema;
const IntegralSchem: mongoose.Schema = new Schema({
  roleId: { type: Number, desc: "角色Id", index: true },
  num: { type: Number, desc: "积分点数", default: 0 },
  reward: { type: Array, desc: "积分数组", default: [] },
  reward0: { type: Array, desc: "奖励1数组" },
  reward1: { type: Array, desc: "奖励2数组" },
}, { versionKey: false });

const Integral = mongoose.model("Integral", IntegralSchem);
export default Integral;